package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.example.demo.service.UserService;
import java.util.List;

@RestController
@RequestMapping("/api/v1/user ")
public class RestUserController {
    @Autowired
    private UserService userService;

//    @GetMapping("/api/user")
//    public List<hotel_information> listAllHotel_informations() {
//        return userService.findUser(null);
//    }

//    @GetMapping("/delete")
//    public boolean deleteUser(@RequestParam("hotel_id")int hotel_id){
//        int count=userService.deletehotel_information(hotel_id);
//        return count>0?true:false;
//    }
}
